package com.prs.crm.domain.crm;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * 跟单方式
 * @author zhoupeng 2012-3-1
 *
 */
@Entity
@Table(name="crm_documentary_style")
public class DocumenTaryStyle extends BaseEntity{
	private static final long serialVersionUID = 1L;
	
	@Id@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	
	private String name;  //类别名称
	private String remark;  //说明
	//跟单
	@OneToMany(fetch=FetchType.LAZY,mappedBy="style")
	private Set<DocumenTary> tarys;
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public Set<DocumenTary> getTarys() {
		return tarys;
	}
	public void setTarys(Set<DocumenTary> tarys) {
		this.tarys = tarys;
	}
	
	
}
